package net.wanho.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.wanho.dto.ModifyPwdDto;
import net.wanho.dto.ModifySelfDto;
import net.wanho.po.UserInfo;
import net.wanho.vo.QueryAuthListVo;
import net.wanho.vo.queryRoleByIdVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author BGAll
* @description 针对表【user_info(用户表)】的数据库操作Mapper
* @createDate 2025-07-22 19:11:14
* @Entity net.wanho.po.UserInfo
*/
public interface UserInfoMapper extends BaseMapper<UserInfo> {


    List<Integer> queryRoleIdsByUserId(Integer id);

    List<Integer> queryAuthIdsByRoleIds(List<Integer> roleIds);

    Page<UserInfo> selectByPage(@Param("userInfoPage") Page<UserInfo> userInfoPage, @Param("ew") QueryWrapper<UserInfo> wrapper);

    void updateByIds(Integer[] ids);

    List<queryRoleByIdVo> selectRoleById(Integer id);

    List<Integer> queryAuthIds(Integer userId);

    void modifyPwd(ModifyPwdDto modifyPwdDto);

    void modifySelf(ModifySelfDto modifySelfDto);

}




